package com.qidianit.mes.production.controller;

import com.qidianit.common.pojo.MESResult;
import com.qidianit.mes.production.service.ProcessRelationshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author djl
 * @Time 2024/10/22 15:08
 */
@RestController
@RequestMapping("/relationship")
@CrossOrigin
public class ProcessRelationshipController {
    @Autowired
    private ProcessRelationshipService processRelationshipService;
    @GetMapping("/list")
    public MESResult list(){
        return processRelationshipService.list();
    }
}
